package com.naiterui.ehp.bs.emr.repository.mysql;

import java.util.List;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.emr.entity.mysql.EmrMedicalRecordSetting;

/**
 * 医生病历设置
 * 
 * @author yangfuya
 * @since 2022/4/11
 */
public interface IDrMedicalRecordSettingRepository extends BaseJpaRepository<EmrMedicalRecordSetting, Long> {

    /**
     * 根据医生获取该医生所有的病历设置
     * 
     * @param doctorId
     * @return
     */
    List<EmrMedicalRecordSetting> findAllByDoctorId(Long doctorId);

    /**
     * 根据医生ID删除病历设置
     * 
     * @param doctorId
     */
    void deleteAllByDoctorId(Long doctorId);
}
